<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>1.变量的应用案例</title>
    <!-- 使用变量保存个人信息 -->
    <script>
        var myName = '路人小许'; //名称
        var address = '合肥市蜀山区'; //住址
        var age = 22; //年龄
        var email = '3049880574@qq.com'; //电子邮箱
        console.log(myName); //输出name值
        console.log(address); //输出address住址
        console.log(age); //输出年龄
        console.log(email); //输出电子邮件值
    </script>
</head>

<body>

</body>

</html>

<!-- 我是分界线----------------------------------------我是分界线 -->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2.使用变量保存用户输入的值</title>
    <script>
        var myName = '小黄';
        console.log(myName); //输出结果：小黄
        var myName = '小楠';
        console.log(myName); //输出结果：小楠
    </script>
</head>

<body>

</body>

</html>